<?php
$section = 'user_delete';

$titre = _LB_ACCOUNT_MANAGEMENT;
$smarty->assign('titre', $titre);

$id = Request::getIntNumber('id');
$backlink = Session::getBackLink('user');
$currentlink = APPLICATION_URL . "/user/delete/?id=". $id;

$login = new Login();
if(!$login->get($id))
	redirect($backlink);

if ($login->deletable($login->ID)){
    $login->delete();
}

redirect($backlink);